package com.dpwgc.easywebpay.base.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 订单类
 *
 * 如需扩展字段，请自行添加
 */
@TableName(value = "e_order")
public class Order {

    @TableId(value = "id",type = IdType.AUTO)
    private long id;            //订单id
    private String subject;     //订单主题
    private long itemId;        //商品id
    private long userId;        //用户id
    private String orderNo;     //订单号（随机生成字符串）
    private double price;       //订单价格
    private String page;        //web支付页面（html字符串）
    private int	status;         //订单状态（0：未支付，1：已支付，2：已关闭，3：已删除）
    private String startTime;   //订单开始时间
    private String updateTime;  //订单最后更新时间

    public void setPrice(double price) {
        this.price = price;
    }

    public double getPrice() {
        return price;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getSubject() {
        return subject;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getItemId() {
        return this.itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public long getUserId() {
        return this.userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getOrderNo() {
        return this.orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getPage() {
        return page;
    }

    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStartTime() {
        return this.startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
